Skip to content

Harden validation and refresh project tooling#323

Merged
swimmwatch merged 3 commits into
devfrom
feature/update-depends
Jun 2, 2026
Merged

Harden validation and refresh project tooling#323
swimmwatch merged 3 commits into
devfrom
feature/update-depends

Conversation

@swimmwatch

Copy link
Copy Markdown
Owner

THIS PROJECT IS IN MAINTENANCE MODE. We accept pull requests for bug fixes only. New features are not accepted.

Description

Refreshes maintenance tooling, dependency metadata, GitHub-facing documentation, and the MkDocs site. It also hardens Telegram init data validation around query parsing, expiry handling, typed result serialization, and third-party validation without changing public method names.

Related Issue

No linked issue. This is a maintenance update for dependency/tooling refresh, documentation accuracy, and validation correctness found during repository review.

Motivation and Context

The project needed a current Poetry 2.x setup, updated CI tooling, clearer public documentation, and stricter handling of valid Telegram payloads. The auth changes fix edge cases around encoded query values, zero-duration expiry checks, runtime dataclass types, malformed init data, and third-party validation ergonomics.

How Has This Been Tested (if appropriate)?

  • PYENV_VERSION=3.13.12 make flake
  • PYENV_VERSION=3.13.12 make mypy
  • PYENV_VERSION=3.13.12 make black-lint
  • PYENV_VERSION=3.13.12 make test
  • PYENV_VERSION=3.13.12 poetry run pytest --cov=telegram_webapp_auth --cov-branch --cov-report=html tests
  • PYENV_VERSION=3.13.12 poetry run mkdocs build --strict
  • ./actionlint -color
  • git diff --check

Screenshots (if appropriate):

Not applicable.

@swimmwatch swimmwatch merged commit 67b2922 into dev Jun 2, 2026
22 checks passed
@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.21782% with 22 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
telegram_webapp_auth/auth.py 77.31% 19 Missing and 3 partials ⚠️
Files with missing lines Coverage Δ
telegram_webapp_auth/data.py 100.00% <100.00%> (ø)
telegram_webapp_auth/auth.py 84.33% <77.31%> (+4.50%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@swimmwatch swimmwatch mentioned this pull request Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant